package com.zjt.service.user;
import com.zjt.entity.ClientUser;
import com.zjt.web.api.vo.base.PageVO;
import org.springframework.data.domain.Page;
/**
 * Created with IntelliJ IDEA.
 * User: xueyanbeijing
 * Date: 12-8-24
 * Time: PM11:07
 * 手机客户用户的信息接口定义
 * To change this template use File | Settings | File Templates.
 */
public interface IClientUserService {
     ClientUser registerClientUser(String nickName,String email,String passwd,
                                   String mdn,String sex,String version,String platform,String imei); //注册

    /**
     * 登陆
     * @param userName
     * @param passwd
     * @return
     */
    ClientUser loginClientUserByUserName(String userName,String passwd);//登陆

    /**
     * 通过用户名称返回对像
     * @param userName
     * @return
     */
    ClientUser getClientUserByUserName(String userName);

    /**
     * 通过用户ID取到用户实体
     * @param userId
     * @return
     */
     ClientUser getClientUserById(Long userId);

    /**
     * 通过用户imei取到用户实体
     * @param imei
     * @return
     */
     ClientUser getClientUserByImei(String imei);

    /**
     * 通过用户Email取到用户实体
     * @param email
     * @return
     */
     ClientUser getClientUserByEmail(String email);

    /**
     * 检查用户是否存在
     * @param userId
     * @return
     */
     boolean checkExistByUserId(long userId);

    /**
     * 更新用户信息
     * @param userId
     * @param nickName
     * @param email
     * @param passwd
     * @param mdn
     * @param sex
     * @param version
     * @param platform
     * @param imei
     * @return
     */
     ClientUser updateClientUser(long userId,   String nickName,String email,String passwd,
                                   String mdn,String sex,String version,String platform,String imei); //注册


     Page<ClientUser> getClientUserList(PageVO pageVO);
}
